package com.alex.blog.service.impl;

import com.alex.blog.mapper.UserMapper;
import com.alex.blog.pojo.User;
import com.alex.blog.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper userMapper;

    public User getOneByUserName(String username) {
        return userMapper.getOneByUsername(username);
    }
}
